<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<div class="now">
		<a href="javascript:;" class="sel">{$menutitle}<i></i></a>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20 mab20">
		<tr>
			<td align="right" width="200">商品信息：</td>
			<td>
				<a href="{pe_url('product-'.$info['product_id'])}" target="_blank">
					<img src="{pe_thumb($info['product_logo'], 100, 100)}" width="50" height="50" class="imgbg" style="vertical-align:middle">
					<span class="mal5 cblue">{$info['product_name']}</span>
				</a>
			</td>
		</tr>
		<tr>
			<td align="right">评价日期：</td>
			<td>{pe_date($info['comment_atime'])}</td>
		</tr>
		<tr>
			<td align="right">评价用户：</td>
			<td><a href="http://www.ip138.com/ips.asp?ip={$info['user_ip']}" target="_blank">{$info['user_name']}</a></td>
		</tr>
		<tr>
			<td align="right">综合评分：</td>
			<td>
				<input type="hidden" name="info[comment_star]" value="{$info['comment_star']}" />
				<span id="star" class="fl mat3"></span>
				<span id="comment_star_show" class="fl mal10 corg"></span>
				<div class="clear"></div>
			</td>
		</tr>
		<tr>
			<td align="right">评价内容：</td>
			<td><textarea name="info[comment_text]" style="width:550px;height:120px;resize:none">{$info['comment_text']}</textarea></td>
		</tr>
		<tr>
			<td align="right">评价晒图：</td>
			<td id="album_box">
				<!--{foreach(array(0,1,2,3,4) as $k=>$v):}-->
				<div class="upload_box fl mar10" style="width:100px;height:100px">
					<img src="{pe_thumb($comment_logo[$k])}" class="upload_img" />
					<input type="hidden" name="comment_logo[]" value="{$comment_logo[$k]}" class="upload_val">
				</div>
				<!--{endforeach;}-->
			</td>
		</tr>
		</table>
	</div>
	<div class="now">
		<a href="javascript:;" class="sel">商家回复<i></i></a>
		<div class="clear"></div>
	</div>
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat10 mab10">
		<tr>
			<td align="right" width="200">回复内容：</td>
			<td><textarea name="info[comment_reply_text]" style="width:550px;height:120px">{$info['comment_reply_text']}</textarea></td>
		</tr>
		<tr>
			<td align="right">回复日期：</td>
			<td>{pe_date($info['comment_reply']?$info['comment_reply_time']:time())}</td>
		</tr>
		</table>
	</div>
	<div class="right_bottom center">
		<input type="hidden" name="pe_token" value="{$pe_token}" />
		<input type="hidden" name="pesubmit" value="{$pe_token}" />
		<input type="button" value="提 交" class="tjbtn">
	</div>
	</form>
</div>
<script type="text/javascript" src="{$pe['host']}include/plugin/raty/jquery.raty.js"></script>、
<link rel="stylesheet" href="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/style.css">
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/plupload.min.js"></script>
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/upload.js"></script>
<script type="text/javascript">
$(function() {
	$('#star').raty({
		path:"{$pe['host']}include/plugin/raty/images",
		hints: ['很差', '较差', '一般', '满意', '很满意'],
		score: {$info['comment_star']},
		target: "#comment_star_show",
		targetKeep: true,
		click: function (score, evt) {
			$(":input[name='info[comment_star]']").val(score);
		}
	});
	$("#album_box").pe_upload();
	$(":button").click(function(){
		pe_submit("{pe_nowurl()}", function(json){
			if (json.code == 1) pe_open('back', 1000);
		});
	})
})
</script>
<!--{include(pe_tpl('footer.html'));}-->